package com.lyt.mall.product.feign;

import com.lyt.common.dto.SkuHasStockDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author: LiuYutong
 */
@FeignClient("mall-ware")
public interface WareSkuFeignService {

    @PostMapping("/ware/waresku/hasStock")
    List<SkuHasStockDTO> getSkuHasStock(@RequestBody List<Long> skuIds);
}
